.TH std::swap(std::promise) 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::swap(std::promise) \- std::swap(std::promise)

.SH Synopsis
   Defined in header <future>
   template< class R >                                      \fI(since C++11)\fP
   void swap( promise<R>& lhs, promise<R>& rhs ) noexcept;

   Specializes the std::swap algorithm for std::promise. Exchanges the shared state of
   lhs with that of rhs. Effectively calls lhs.swap(rhs).

.SH Parameters

   lhs, rhs - promises whose states to swap

.SH Return value

   \fI(none)\fP

.SH Example

    This section is incomplete
    Reason: no example

.SH See also

   swap swaps two promise objects
        \fI(public member function)\fP

.SH Category:
     * Todo no example
